package com.rongmai.db.mapper;

import com.rongmai.db.model.CompanyRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【company_role(公司角色)】的数据库操作Mapper
* @createDate 2024-03-10 11:03:33
* @Entity com.rongmai.db.model.CompanyRole
*/
public interface CompanyRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(CompanyRole record);

    CompanyRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CompanyRole record);

    int updateByPrimaryKey(CompanyRole record);

    CompanyRole query(@Param("companyId") Integer companyId, @Param("role") String role);

    List<CompanyRole> queryByCompanyId(Integer companyId);
}
